package com.guoxin.part4.chapter21;

/**
 * @author guoxin
 * @date 2019/9/1
 */
public class ThreadLocalInitValue {
    public static void main(String[] args) {
        ThreadLocal<Object> tl = ThreadLocal.withInitial(Object::new);
        new Thread(() -> System.out.println(tl.get())).start();
        System.out.println(tl.get());
    }
}
